-- GENERATED SPELL FOR [Thunderhead Patriarch] --


function spell0_6379(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_6379', 3000, 1)
end

function spell1_6379(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(12553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6379', 0, 1)
end

function Sorts_6379(pUnit, Event)
local choix_sorts_6379 = math.random(0, 1)
if choix_sorts_6379 == 0 then
pUnit:RegisterEvent('spell0_6379', 1, 1)
end
if choix_sorts_6379 == 1 then
pUnit:RegisterEvent('spell1_6379', 1, 1)
end
end

function mob6379_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6379', math.random(1500, 3000), 1)
end

function mob6379_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6379_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6379_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6379, 1, 'mob6379_Action')
RegisterUnitEvent(6379, 2, 'mob6379_Leave')
RegisterUnitEvent(6379, 3, 'mob6379_Kill')
RegisterUnitEvent(6379, 4, 'mob6379_Die')
